package com.aspose.cells;

class zsk {
   private static final com.aspose.cells.b.c.a.za a = new com.aspose.cells.b.c.a.za(new String[]{"#DIV/0!", "#N/A", "#NAME?", "#NULL!", "#NUM!", "#REF!", "#VALUE!", "#Recursive Reference!", "darken", "darkenLess", "lighten", "lightenLess", "none"});

   static int a(int var0) {
      switch(var0) {
      case 0:
         return 0;
      case 1:
         return 6;
      case 2:
         return 11;
      case 3:
         return 5;
      case 4:
         return 4;
      case 5:
         return 12;
      case 6:
         return 13;
      case 7:
         return 1;
      case 8:
         return 10;
      case 9:
         return 3;
      case 10:
         return 9;
      case 11:
         return 2;
      case 12:
         return 7;
      case 13:
         return 8;
      default:
         return 0;
      }
   }

   static boolean a(int var0, int var1) {
      int var2 = a(var0);
      int var3 = a(var1);
      return var1 > var0;
   }

   static byte b(int var0) {
      switch(var0) {
      case 1:
         return 1;
      case 2:
         return 2;
      case 3:
      case 5:
      case 6:
      case 7:
      default:
         return 1;
      case 4:
         return 4;
      case 8:
         return 8;
      }
   }

   static int c(int var0) {
      return var0;
   }

   static int d(int var0) {
      return var0;
   }

   static byte a(String var0) {
      if (var0.length() == 0) {
         return -1;
      } else if (var0.charAt(0) != '#') {
         return -1;
      } else {
         switch(a.a(var0)) {
         case 0:
            return 7;
         case 1:
            return 42;
         case 2:
            return 29;
         case 3:
            return 0;
         case 4:
            return 36;
         case 5:
            return 23;
         case 6:
            return 15;
         default:
            return -1;
         }
      }
   }

   static zst a(String var0, boolean[] var1) {
      var1[0] = true;
      if (var0.length() == 0) {
         var1[0] = false;
         return zst.c;
      } else if (var0.charAt(0) != '#') {
         var1[0] = false;
         return zst.c;
      } else {
         switch(a.a(var0)) {
         case 0:
            return zst.a;
         case 1:
            return zst.c;
         case 2:
            return zst.d;
         case 3:
            return zst.e;
         case 4:
            return zst.f;
         case 5:
            return zst.g;
         case 6:
            return zst.i;
         case 7:
            return zst.h;
         default:
            var1[0] = false;
            return zst.c;
         }
      }
   }

   static String a(zst var0) {
      switch(null.a[var0.ordinal()]) {
      case 1:
         return "#NULL!";
      case 2:
         return "#DIV/0!";
      case 3:
         return "#VALUE!";
      case 4:
         return "#REF!";
      case 5:
         return "#NAME?";
      case 6:
         return "#NUM!";
      case 7:
         return "#N/A";
      case 8:
         return "#Recursive Reference!";
      default:
         return null;
      }
   }

   static byte b(zst var0) {
      switch(null.a[var0.ordinal()]) {
      case 1:
         return 0;
      case 2:
         return 7;
      case 3:
         return 15;
      case 4:
         return 23;
      case 5:
         return 29;
      case 6:
         return 36;
      case 7:
         return 42;
      case 8:
         return -2;
      default:
         return 0;
      }
   }

   static zst a(byte var0) {
      switch(var0) {
      case 0:
         return zst.e;
      case 7:
         return zst.a;
      case 15:
         return zst.i;
      case 23:
         return zst.g;
      case 29:
         return zst.d;
      case 36:
         return zst.f;
      case 42:
         return zst.c;
      default:
         return zst.c;
      }
   }

   static String b(byte var0) {
      switch(var0) {
      case -2:
         return "#Recursive Reference!";
      case 0:
         return "#NULL!";
      case 7:
         return "#DIV/0!";
      case 15:
         return "#VALUE!";
      case 23:
         return "#REF!";
      case 29:
         return "#NAME?";
      case 36:
         return "#NUM!";
      case 42:
         return "#N/A";
      default:
         return null;
      }
   }

   static boolean b(String var0) {
      if (var0.length() == 0) {
         return false;
      } else if (var0.charAt(0) != '#') {
         return false;
      } else {
         switch(a.a(var0)) {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
            return true;
         default:
            return false;
         }
      }
   }

   static boolean c(String var0) {
      return zbtq.a(var0);
   }

   static boolean b(String var0, boolean[] var1) {
      if (var0.length() == 0) {
         return false;
      } else if (var0.charAt(0) != '#') {
         return false;
      } else {
         switch(a.a(var0)) {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
            return true;
         case 7:
            var1[0] = true;
            return true;
         default:
            return false;
         }
      }
   }

   static int a(int var0, boolean var1) {
      if (var1) {
         switch(var0) {
         case 0:
            return 9;
         case 1:
            return 1;
         case 2:
            return 0;
         case 3:
            return 6;
         case 4:
            return 3;
         }
      } else {
         switch(var0) {
         case 0:
            return 5;
         case 1:
            return 7;
         case 2:
            return 1;
         case 3:
            return 8;
         case 4:
            return 4;
         case 5:
            return 6;
         case 6:
            return 2;
         case 7:
            return 3;
         }
      }

      return 5;
   }

   static int b(int var0, boolean var1) {
      byte var2 = 0;
      if (var1) {
         switch(var0) {
         case 0:
            var2 = 2;
            break;
         case 1:
            var2 = 1;
         case 2:
         case 4:
         case 5:
         case 7:
         case 8:
         default:
            break;
         case 3:
            var2 = 4;
            break;
         case 6:
            var2 = 3;
            break;
         case 9:
            var2 = 0;
         }
      } else {
         switch(var0) {
         case 1:
            var2 = 2;
            break;
         case 2:
            var2 = 6;
            break;
         case 3:
            var2 = 7;
            break;
         case 4:
            var2 = 4;
            break;
         case 5:
            var2 = 0;
            break;
         case 6:
            var2 = 5;
            break;
         case 7:
            var2 = 1;
            break;
         case 8:
            var2 = 3;
         }
      }

      return var2;
   }

   static int c(byte var0) {
      switch(var0) {
      case 1:
         return 0;
      case 2:
         return 7;
      case 3:
         return 1;
      case 4:
         return 8;
      case 5:
         return 2;
      case 6:
         return 4;
      case 7:
         return 3;
      case 8:
         return 5;
      default:
         return 6;
      }
   }

   static int e(int var0) {
      switch(var0) {
      case 0:
         return 0;
      case 1:
         return 1;
      case 2:
         return 2;
      case 3:
         return 6;
      case 4:
         return 7;
      case 5:
         return 3;
      case 6:
         return 4;
      case 7:
         return 5;
      case 8:
         return 8;
      case 9:
         return 9;
      case 10:
         return 11;
      case 11:
         return 10;
      case 12:
         return 12;
      case 13:
         return 13;
      case 14:
         return 14;
      case 15:
         return 16;
      case 16:
         return 15;
      default:
         return 0;
      }
   }

   static int f(int var0) {
      switch(var0) {
      case 0:
         return 0;
      case 1:
         return 1;
      case 2:
         return 2;
      case 3:
         return 5;
      case 4:
         return 6;
      case 5:
         return 7;
      case 6:
         return 3;
      case 7:
         return 4;
      case 8:
         return 8;
      case 9:
         return 9;
      case 10:
         return 11;
      case 11:
         return 10;
      case 12:
         return 12;
      case 13:
         return 13;
      case 14:
         return 14;
      case 15:
         return 16;
      case 16:
         return 15;
      default:
         return 0;
      }
   }

   static int g(int var0) {
      byte var1 = 7;
      switch(var0) {
      case 0:
         var1 = 0;
         break;
      case 1:
         var1 = 1;
         break;
      case 2:
         var1 = 2;
         break;
      case 3:
         var1 = 3;
         break;
      case 4:
         var1 = 4;
         break;
      case 5:
         var1 = 5;
      }

      return var1;
   }

   static int h(int var0) {
      byte var1 = 5;
      switch(var0) {
      case 0:
         var1 = 0;
         break;
      case 1:
         var1 = 1;
         break;
      case 2:
         var1 = 2;
         break;
      case 3:
         var1 = 3;
         break;
      case 4:
         var1 = 4;
         break;
      case 5:
         var1 = 5;
      }

      return var1;
   }

   static int d(String var0) {
      byte var1 = 5;
      switch(a.a(var0)) {
      case 8:
         var1 = 0;
         break;
      case 9:
         var1 = 1;
         break;
      case 10:
         var1 = 2;
         break;
      case 11:
         var1 = 3;
         break;
      case 12:
         var1 = 4;
      }

      return var1;
   }

   static String i(int var0) {
      String var1 = "norm";
      switch(var0) {
      case 0:
         var1 = "darken";
         break;
      case 1:
         var1 = "darkenLess";
         break;
      case 2:
         var1 = "lighten";
         break;
      case 3:
         var1 = "lightenLess";
         break;
      case 4:
         var1 = "none";
      }

      return var1;
   }
}
